package com.briup.cms.dao;

import com.briup.cms.bean.Role;
import org.apache.ibatis.annotations.*;

import javax.annotation.Resource;
import java.util.List;

public interface RoleMapper {
@Resource
    @Select("select * from cms_role")
    List<Role> selectAll();
    @Insert("insert  into cms_role values(null,#{name})")
    void insert(Role role);
    @Update("update cms_role set name=#{name} where id=#{id}")
    void update(Role role);
   @Delete("delete from cms_role where id=#{id}")
    void deleteById(Long id);

}
